﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LimpaGaragem.BLL.Generic
{
    public class City
    {
        /// <summary>
        /// Return list of city
        /// </summary>
        /// <returns></returns>
        public List<LimpaGaragem.Model.Generic.City> GetListOfCity(int IDState)
        {
            try
            {
                return new LimpaGaragem.DAO.Generic.City().GetListOfCity(IDState);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        /// <summary>
        /// Return data of city
        /// </summary>
        /// <returns></returns>
        public LimpaGaragem.Model.Generic.City GetCity(int IDCity)
        {
            try
            {
                return new LimpaGaragem.DAO.Generic.City().GetCity(IDCity);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
